package com.stq.toutiao.model.request;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

/**
 * @author stqsht@163.com
 * @date 2020-01-23 19:42
 */
public class TouTiaoUserStorageParam implements Serializable {
    /**
     * 服务端 API 调用标识
     */
    @JSONField(name = "access_token")
    private String accessToken;
    /**
     * 登录用户唯一标识
     */
    private String openid;
    /**
     * 用户登录态签名
     */
    private String signature;
    /**
     * 用户登录态签名的编码方法
     */
    @JSONField(name = "sig_method")
    private String sigMethod;
    /**
     * (body 中) 要设置的用户数据
     */
    @JSONField(name = "kv_list")
    private String kvList;
    /**
     * (body 中) 要删除的用户数据的 key list
     */
    private String key;

    public TouTiaoUserStorageParam() {
    }

    public TouTiaoUserStorageParam(String accessToken, String openid, String signature, String sigMethod) {
        this.accessToken = accessToken;
        this.openid = openid;
        this.signature = signature;
        this.sigMethod = sigMethod;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getSigMethod() {
        return sigMethod;
    }

    public void setSigMethod(String sigMethod) {
        this.sigMethod = sigMethod;
    }

    public String getKvList() {
        return kvList;
    }

    public void setKvList(String kvList) {
        this.kvList = kvList;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
